import socket
import time

server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server.bind(('', 17800))
print 'udp server start'
while True:
    data, (addr, port) = server.recvfrom(1024)
    print data, addr, port
    time.sleep(5)
    server.sendto(data+addr+str(port), (addr, port))
